package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien_PhieuLyLich_GiaDinh")
public class Tbl_QLDTTXA_HocVien_PhieuLyLich_GiaDinh implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien hocVienId = null;
   private String hoTen;
   private Tbl_QLDTTXA_DM_LoaiQuanHe quanHeId = null;
   private String thuongTru;
   private String ghiChu;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocVienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_tbl_QLDTTXA_HocVien_PhieuLyLich_GiaDinh")
   public Tbl_QLDTTXA_HocVien getHocVienId() {
	    return hocVienId;
   }
   public void setHocVienId(Tbl_QLDTTXA_HocVien hocVienId) {
	    this.hocVienId=hocVienId;
   }

   public String getHoTen() {
   	return hoTen;
   }
   public void setHoTen(String hoTen) {
   	this.hoTen= hoTen;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="quanHeId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_LoaiQuanHe_tbl_QLDTTXA_HocVien_PhieuLyLich_GiaDinh")
   public Tbl_QLDTTXA_DM_LoaiQuanHe getQuanHeId() {
	    return quanHeId;
   }
   public void setQuanHeId(Tbl_QLDTTXA_DM_LoaiQuanHe quanHeId) {
	    this.quanHeId=quanHeId;
   }

   public String getThuongTru() {
   	return thuongTru;
   }
   public void setThuongTru(String thuongTru) {
   	this.thuongTru= thuongTru;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }
}//endClass 

